package com.zzh.demo.core.model;

import lombok.Data;

import java.util.List;

/**
 * description： <br>
 * createTime: 2018/1/515:21 <br>
 *
 * @author zzh
 */
@Data
public class LoginUser {

     private String userId;

     private String userAccount;

     private String currentProjectId;

     private String userName;

     private Integer userType;

     private List<String> roleIds;


    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"userId\":\"")
                .append(userId).append('\"');
        sb.append(",\"userAccount\":\"")
                .append(userAccount).append('\"');
        sb.append(",\"currentProjectId\":\"")
                .append(currentProjectId).append('\"');
        sb.append(",\"userName\":\"")
                .append(userName).append('\"');
        sb.append(",\"roleIds\":")
                .append(roleIds);
        sb.append('}');
        return sb.toString();
    }
}
